import request from "@/utils/request";

// 1.列表
export const storeManagement_ListAPI = (params) => {
  return request({
    url: "/base/manage/shopInfo/list",
    params,
  });
};
// 获取清关公司详细信息
export const storeManagement_DetailsAPI = (params) => {
  return request({
    url: `/base/manage/customsCompany/getInfo/${id}`,
    params,
  });
};
// 1.新增
export const storeManagement_AddAPI = (data) => {
  return request({
    url: "/base/manage/shopInfo/save",
    method: "post",
    data,
  });
};
// 1.编辑
export const storeManagement_EditAPI = (data) => {
  return request({
    url: "/base/manage/shopInfo/save",
    method: "put",
    data,
  });
};
// 1.删除
export const storeManagement_DelAPI = (ids) => {
  return request({
    url: `/base/manage/shopInfo/del/${ids}`,
    method: "delete",
  });
};

//2.导出
export const storeManagement_ExportAPI = () => {
  return request({
    url: "/base/manage/shopInfo/export",
    method: "post",
  });
};

//2.导入
export const storeManagement_ImportAPI = (data) => {
  return request({
    url: "/base/manage/shopInfo/import",
    method: "post",
    headers: { 'Content-Type': 'multipart/form-data' },
    data
  });
};

